package com.ruoyi.business.controller;

import com.ruoyi.business.domain.Application;
import com.ruoyi.business.dto.AddApplicationDTO;
import com.ruoyi.business.dto.AuditDTO;
import com.ruoyi.business.service.IApplicationService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 申请Controller
 * 
 * @author lcz
 * @date 2025-01-19
 */
@Api(value = "admin",tags = "后台---后台需要对接接口")
@RestController
@RequestMapping("/business/admin")
public class AdminController extends BaseController
{
    @Autowired
    private IApplicationService applicationService;

    /**
     * 申请单审核接口
     */
    @ApiOperation("申请单审核接口")
    @PostMapping("/audit")
    public AjaxResult audit(@RequestBody AuditDTO dto)
    {
        return applicationService.audit(dto);
    }
}
